package _15_generics._15_4.exercise;

import net.mindview.util.New;
import net.mindview.util.TwoTuple;

import java.util.List;

/**
 * Repeat the previous exercise using explicit type
 * specification
 */
public class E12_NewTest2 {
    static void f(List<TwoTuple<String,Integer>> list){
        list.add(new TwoTuple<>("hello",1));
        System.out.println(list);
    }

    public static void main(String[] args) {
        f(New.<TwoTuple<String,Integer>>list());
    }
}
